import request from '@/utils/request';

/**
 * GET 查看回款计划一年数据
 * @pathParam apiVersion true
 * @queryParam versionId true
 * @queryParam year false
 */
export function annualDataUsingGET({ params, data }) {
  return request('returnPlan/annualData', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询回款计划审批预览数据PC
 * @pathParam apiVersion true
 * @queryParam approvalId false
 * @queryParam projectId false
 */
export function approvalPreviewPCUsingGET({ params, data }) {
  return request('returnPlan/approvalPreviewPC', {
    method: 'GET',
    params,
    data,
  });
}

export function approvalPreviewAppUsingGET({ params, data }) {
  return request('returnPlan/approvalPreviewApp', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 审批提交
 * @pathParam apiVersion true
 * @bodyParam param false
 */
export function approvalSubmitUsingPOST({ params, data }) {
  return request('returnPlan/approvalSubmit', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 审批校验
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function approvedCheckUsingGET_2({ params, data }) {
  return request('returnPlan/approvedCheck', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 设置考核版
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function assessmentUsingGET({ params, data }) {
  return request('returnPlan/assessment', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 新建回款计划
 * @pathParam apiVersion true
 * @bodyParam param true
 */
export function createUsingPOST_1({ params, data }) {
  return request('returnPlan/create', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 获取新建来源数据
 * @pathParam apiVersion true
 * @queryParam stageId true
 * @queryParam versionType true
 */
export function createSourceDataUsingGET({ params, data }) {
  return request('returnPlan/createSourceData', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * DELETE 删除回款计划
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function delUsingDELETE_1({ params, data }) {
  return request('returnPlan/del', {
    method: 'DELETE',
    params,
    data,
  });
}

/**
 * GET 查询回款计划编辑页面数据
 * @pathParam apiVersion true
 * @queryParam groupId true
 * @queryParam versionId true
 */
export function editDataListUsingGET({ params, data }) {
  return request('returnPlan/editDataList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * PUT 回款计划编辑页面保存
 * @pathParam apiVersion true
 * @bodyParam paramList true
 */
export function editSaveUsingPUT({ params, data }) {
  return request('returnPlan/editSave', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * POST 异常新建回款计划
 * @pathParam apiVersion true
 * @bodyParam param true
 */
export function exceptionCreateUsingPOST({ params, data }) {
  return request('returnPlan/exceptionCreate', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 回款计划编辑页面全盘概览
 * @pathParam apiVersion true
 * @queryParam month true
 * @queryParam versionId true
 * @queryParam year true
 */
export function fullOverviewUsingGET({ params, data }) {
  return request('returnPlan/fullOverview', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 回款计划编辑页面组团列表
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function groupListUsingGET({ params, data }) {
  return request('returnPlan/groupList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询分期最新版本类型
 * @pathParam apiVersion true
 * @queryParam stageId true
 */
export function newVersionTypeUsingGET({ params, data }) {
  return request('returnPlan/newVersionType', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查看全盘回款计划一年数据
 * @pathParam apiVersion true
 * @queryParam projectId true
 * @queryParam year false
 */
export function overallAnnualDataUsingGET({ params, data }) {
  return request('returnPlan/overallAnnualData', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查看全盘回款计划年份列表
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function overallYearListUsingGET({ params, data }) {
  return request('returnPlan/overallYearList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询回款计划待办
 * @pathParam apiVersion true
 * @queryParam combinationId true
 */
export function getPortalTodoUsingGET({ params, data }) {
  return request('returnPlan/portalTodo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动消除回款代办
 * @pathParam apiVersion true
 * @queryParam operatorType true
 * @queryParam versionId true
 */
export function deleteTodoInfoUsingGET({ params, data }) {
  return request('returnPlan/refreshDeleteTodoInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 发送回款代办
 * @pathParam apiVersion true
 * @queryParam signId true
 */
export function returnNoticeDisposeUsingGET({ params, data }) {
  return request('returnPlan/refreshReturnNoticeDispose', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 回款计划编辑页面回款系数
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function returnCoefficientDetailListUsingGET({ params, data }) {
  return request('returnPlan/returnCoefficientDetailList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出项目全盘回款计划版本报表
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function returnOverallPlanVersionExportUsingGET({ params, data }) {
  return request('returnPlan/returnOverallPlanVersionExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询回款计划版本数据列表
 * @pathParam apiVersion true
 * @queryParam stageId true
 * @queryParam versionType true
 */
export function returnPlanVersionDataListUsingGET({ params, data }) {
  return request('returnPlan/returnPlanVersionDataList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 导出回款计划版本报表
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function returnPlanVersionExportUsingGET({ params, data }) {
  return request('returnPlan/returnPlanVersionExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * PUT 回款计划版本修改状态(测试使用)
 * @pathParam apiVersion true
 * @queryParam versionIds true
 * @queryParam versionState true
 */
export function updateStateUsingPUT_1({ params, data }) {
  return request('returnPlan/updateState', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * GET 查看回款计划年份列表
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function yearListUsingGET({ params, data }) {
  return request('returnPlan/yearList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动复制一版为预算版本
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function copyBudgetVersion({ params, data }) {
  return request('returnPlan/copyBudgetVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 手动复制版本
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function copyReturnPlanVersion({ params, data }) {
  return request('returnPlan/copyReturnPlanVersion', {
    method: 'GET',
    params,
    data,
  });
}
